<template>
  <div>
    <slot name="header"></slot>
    <div v-for="item in nameList" :key="item.id">
      <!-- <ul>
        <li>姓名：{{item.name}} --- 年龄：{{item.age}}</li>
      </ul> -->
      <slot name="nameList" :content="item"></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "Item",
  props: ["nameList"],
};
</script>

<style>
</style>